I/O-optimal computation of segment intersections

نویسندگان

  • Andreas Crauser
  • Paolo Ferragina
  • Kurt Mehlhorn
  • Ulrich Meyer
  • Edgar A. Ramos
چکیده

We investigate the I/O-complexity of computing the trapezoidal decomposition deened by a set of N line segments in the plane. We present a randomized algorithm which solves optimally this problem requiring O(N B log M=B N B + K B) expected I/O operations, where K is the number of pairwise intersections, M is the size of available internal memory and B is the size of the block transfer. The proposed algorithm requires an optimal expected number of internal operations. As a by-product, the algorithm also solves the segment intersections problem requiring the same number of I/Os and internal operations.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Towards Optimal Indexing for Segment Databases

Segment databases store N non-crossing but possibly touching segments in secondary storage. EEcient data structures have been proposed to determine all segments intersecting a vertical line (stabbing queries). In this paper, we consider a more general type of query for segment databases, determining intersections with respect to a generalized segment (a line, a ray, a segment) with a xed angula...

متن کامل

Correcting self-intersecting polygons using minimal memory A simple and efficient algorithm and thoughts on line-segment intersection algorithms

While well-known methods to list the intersections of either a list of segments or a complex polygon aim at achieving optimal time-complexity they often do so at the cost of memory comsumption and complex code. Real-life software optimisation however lies in optimising at the same time speed and memory usage as well as keeping code simple. This paper first presents some thoughts on the availabl...

متن کامل

Fr{'e}chet and Hausdorff Queries on $x$-Monotone Trajectories

vspace{0.2cm}In this paper, we design a data structure for the following problem. Let $pi$ be an $x$-monotone trajectory with $n$ vertices in the plane and $epsilon >0$. We show how to preprocess $pi$ and $epsilon$ into a data structure such that for any horizontal query segment $Q$ in the plane, one can quickly determine the minimal continuous fraction of $pi$ whose Fr{'e}chet and Hausdo...

متن کامل

Cache-Oblivious Red-Blue Line Segment Intersection

We present an optimal cache-oblivious algorithm for finding all intersections between a set of non-intersecting red segments and a set of non-intersecting blue segments in the plane. Our algorithm uses O( B logM/B N B + T/B) memory transfers, where N is the total number of segments, M and B are the memory and block transfer sizes of any two consecutive levels of any multilevel memory hierarchy,...

متن کامل

An Elementary Algorithm for Reporting Intersections of Red/Blue Curve Segments

Let and be two sets of -monotone and non-intersecting curve segments, and . We give a new sweep-line algorithm that reports the intersecting pairs of segments of . Our algorithm uses only three simple predicates that allow to decide if two segments intersect, if a point is left or right to another point, and if a point is above, below or on a segment. These three predicates seem to be the simpl...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1998